From: Wei Yongjun Date: Sat, 10 Sep 2016 12:02:49 +0000 (+0000) Subject: meson: clk: Use builtin_platform_driver to simplify the code X-Git-Tag: archive/raspbian/4.9.13-1+rpi1~10^2~1474^2~46 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/%22bookmarks:/?a=commitdiff_plain;h=8edeae56a1da30f0d33848fdd3bd8dafbcc2ad87;p=linux-4.9.git meson: clk: Use builtin_platform_driver to simplify the code Use the builtin_platform_driver() macro to make the code simpler. Signed-off-by: Wei Yongjun Signed-off-by: Stephen Boyd --- diff --git a/drivers/clk/meson/meson8b.c b/drivers/clk/meson/meson8b.c index e1d4aa145a03..aaa3e393d6b6 100644 --- a/drivers/clk/meson/meson8b.c +++ b/drivers/clk/meson/meson8b.c @@ -673,8 +673,4 @@ static struct platform_driver meson8b_driver = { }, }; -static int __init meson8b_clkc_init(void) -{ - return platform_driver_register(&meson8b_driver); -} -device_initcall(meson8b_clkc_init); +builtin_platform_driver(meson8b_driver);